﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUIDialogs
{
    public class ExtLabel : Label
    {
        private bool addColon = true;

        public bool AddColon
        {
            get { return addColon; }
            set { addColon = value; }
        }

        public override string Text
        {
            get
            {
                if (!addColon)
                    return base.Text;

                if (base.Text.EndsWith(":"))
                    return base.Text;
                else
                    return base.Text + ":";
            }
            set
            {
                base.Text = value;
            }
        }
    }
}
